home *** CD-ROM | disk | FTP | other *** search
Java Source | 1997-06-19 | 1.0 KB | 39 lines |
- package symantec.itools.awt.shape;
-
- /**
- * This is a vertical line component.
- * @version 1.0, Nov 26, 1996
- * @author Symantec
- */
-
- public class VerticalLine
- extends Rect
- {
- /**
- * Constructs a default VerticalLine. The line width is 2.
- */
- public VerticalLine()
- {
- width = 2;
- }
-
- /**
- * Moves and/or resizes this component.
- * This is a standard Java AWT method which gets called to move and/or
- * resize this component. Components that are in containers with layout
- * managers should not call this method, but rely on the layout manager
- * instead.
- *
- * @param x horizontal position in the parent's coordinate space
- * @param y vertical position in the parent's coordinate space
- * @param width the new width
- * @param height the new height
- */
- public void reshape(int x, int y, int width, int height)
- {
- this.height = height;
-
- super.reshape(x, y, this.width, height);
- }
- }
-